package com.lxg;

import com.lxg.config.SpringConfig;
import com.lxg.domain.Account;
import com.lxg.service.AccountService;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * @author 陆小根
 * date: 2022/04/25
 * Description:
 */

public class App {

  public static void main(String[] args) {
    ApplicationContext context = new AnnotationConfigApplicationContext(SpringConfig.class);
    AccountService accountService = context.getBean(AccountService.class);

    Account ac = accountService.findById(1);
    System.out.println(ac);
  }

}
